-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tap: cask font sharding fix #17305
tap: cask font sharding fix #17305
Conversation
c6d4e37
to
43a922d
Compare
Is this accurate for apps like |
@@ -673,8 +673,13 @@ def new_cask_path(token) | |||
|
|||
sig { params(token: String).returns(String) } | |||
def relative_cask_path(token) | |||
new_cask_path(token).to_s | |||
.delete_prefix("#{path}/") | |||
if token.start_with?("font-") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems simpler to me to move the token.start_with?
logic into new_cask_path
instead of adjusting the callers in various places.
The whole thing is not quite right at the moment, as mentioned by Bo. This is not the correct solution, but keeping open for visibility for now. |
Apps like this, if they haven't already been, should be renamed. |
I can't see how that can be done at |
43a922d
to
491152d
Compare
I have pushed the change, it will fail the type check because there is a public version of |
The naming follows our (strict) token reference, so I do not think they should be renamed. |
Superseded by #17311 |
We should rename these and change this reference. |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?This is not the correct solution, but keeping open for visibility for now.
We need to instead detect if the Cask is a "font cask" based on the artifacts it includes. The same as here - 836d819
Before:
After: